package simpledemo.service.impl;

import com.cn.mvcfw.annotation.Service;
import simpledemo.service.DemoService;

import java.util.HashMap;
import java.util.Map;

/**
 * Created by
 *
 * @author touni
 * @date 2019/3/27
 * @time 16:37
 */
@Service
public class DemoServiceImpl implements DemoService {
    @Override
    public String testService(String name) {
        //简单封装数据，以便测试！！！
        Map<String,String> map = new HashMap<>();
        map.put("name","111111");
        map.put("abc","222222");
        map.put("cde","333333");
        map.put("efg","444444");

        if (!map.containsKey(name)){
            return "null";
        }

        return map.get(name);
    }
}
